<!--
 * @Description:模版2中间数字展示组件
 * @Author: gaoyunpeng
 * @Date: 2022-01-22 21:47:27
 * @LastEditors: gaoyunpeng
-->
<template>
  <div class="bar">
    <div class="barbox">
      <ul>
        <li class="">
          <!-- 数字动态效果 -->
          <span v-jump>{{ num1 }}</span>
        </li>
        <li class="">
          <!-- 数字动态效果 -->
          <span v-jump>{{ num2 }}</span>
        </li>
      </ul>
    </div>
    <div class="barbox2">
      <ul>
        <li class="pulll_left">消费总金额</li>
        <li class="pulll_left">消费总笔数</li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    num1: {
      type: String
    },
    num2: {
      type: String
    }
  }
}
</script>

<style lang="scss" scoped>
.bar {
  width: 100%;
  height: 180px;
  background: rgba(101, 132, 226, 0.1);
  padding: 0.15rem;
  padding: 30px;
}
.barbox {
  height: 100px;
  line-height: 100px;
  ul {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    li {
      span {
        font-size: 52px;
        color: #ffeb7b;
        font-family: electronicFont; // 引入的字体样式
        font-weight: bold;
      }
    }
  }
}
.barbox2 {
  ul {
    display: flex;
    justify-content: space-around;
    li {
      padding-top: 10px;
      font-size: 20px;
      color: #637c9f;
    }
  }
}
// .barbox li,
// .barbox2 li {
//   width: 50%;
//   text-align: center;
//   position: relative;
// }
.barbox:before,
.barbox:after {
  position: absolute;
  width: 0.3rem;
  height: 0.1rem;
  content: '';
}
.barbox:before {
  border-left: 2px solid #02a6b5;
  left: 0;
  border-top: 2px solid #02a6b5;
}
.barbox:after {
  border-right: 2px solid #02a6b5;
  right: 0;
  bottom: 0;
  border-bottom: 2px solid #02a6b5;
}

// .barbox li:first-child:before {
//   position: absolute;
//   content: '';
//   height: 90%;
//   width: 1px;
//   background: rgba(255, 255, 255, 0.2);
//   right: 0;
//   top: 25%;
// }

.barbox {
  border: 1px solid rgba(25, 186, 139, 0.17);
  position: relative;
}
// .barbox li {
//   font-size: 38px;
//   color: #ffeb7b;
//   padding: 0.05rem 0;
//   font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, 'sans-serif';
//   font-weight: bold;
// }
// .barbox2 li {
//   font-size: 20px;
//   color: #637c9f;
//   // padding-top: 0.1rem;
// }
</style>
